#include<iostream>
using namespace std;
int main()
{
	int n,B,S,G;
	cin>>n;
	B=n/100;
	S=n%100/10;
	G=n%100%10;
	
	cout<<B<<" "<<S<<" "<<G;
	return 0;
}
